#!/usr/bin/env python

import ConfigParser

config = ConfigParser.ConfigParser()

config.read('test.ini')
sections = config.sections()
print "sections: ", sections

o = config.options('mysqld')
print "options: ", o

v = config.items("mysqld")
print "content: ", v

access = config.get("mysqld", "server-id")
print access

access = config.get('mysqld', 'sysname')
print access
